<template>
  <div id="app">
    <!-- <keep-alive exclude='WeaponInfo'>
      <router-view />
    </keep-alive> -->
    <keep-alive>
      <router-view v-if="$route.meta.keepAlive"></router-view>
    </keep-alive>
    <router-view v-if="!$route.meta.keepAlive"></router-view>
    <div id="nav">
      <van-tabbar route class="navbar" v-if="this.$route.meta.showTab">
        <van-tabbar-item replace to="/" icon="home-o">首页</van-tabbar-item>
        <van-tabbar-item replace to="/about" icon="search">数据库</van-tabbar-item>
      </van-tabbar>
    </div>
  </div>
</template>

<style>
  body {
    background: #1F1F1F;
  }
</style>